package com.xiaoyg.lession01.chapter10;

/**
 * 获取多线程的线程名称
 */
public class MyThread extends Thread {

    public MyThread(){
        System.out.println("构造方法的打印："+Thread.currentThread().getName());
    }

    @Override
    public void run() {
        System.out.println("run方法的打印："+Thread.currentThread().getName());
    }
}
